<%@ page import="org.internna.iwebjtracker.spring.mvc.IssueController" %>
<%@ taglib prefix="iwebmvc" uri="http://tags.iwebmvc.com" %>
<%@ taglib prefix="iwebjtracker" tagdir="/WEB-INF/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<c-rt:set var="issue" value="<%= IssueController.ISSUE %>" />
<c-rt:set var="activityFilters" value="<%= IssueController.ISSUE_FILTERS %>" />
<c-rt:set var="activityClass" value="<%= org.internna.iwebjtracker.model.Activity.class %>" />
<c-rt:set var="issueClass" value="<%= org.internna.iwebjtracker.model.DefaultIssue.class %>" />
<c-rt:set var="sessionUser" value="<%= org.internna.iwebmvc.security.UserManager.SESSION_USER %>" />
<iwebmvc:panel title="ui.issue.main" width="98%;margin:0">
    <jsp:include page="control.jsp" />
</iwebmvc:panel>
<div class="panelSeparator"></div>
<iwebmvc:panel title="ui.project.activityFor;${requestScope[issue].alias}" width="98%;margin:0" cssStyle="text-align:left">
    <iwebmvc:filteredgrid id='${fn:replace(requestScope[issue].alias, "-", "_")}IssueActivity' entityClass="${activityClass}" currentDepthLevel="0" baseColumnWidth="100" pages="5" rows="9" filters="${requestScope[activityFilters]}" defaultSort="{attribute: 'eventDate', descending: true}">
        <div class="overclear" style="vertical-align:top">
            <div class="float_left" style="padding-top:5px;margin-left:15px">
                <iwebmvc:sprite id='${fn:replace(requestScope[issue].alias, "-", "_")}IssueActivityFilter' text="iwebmvc.ui.crud.filter;${activityClass.name}" sprite="table_${sessionScope[sessionUser].theme}.png" top="-250px" position="after">
                    showIssueActivityFilter("${fn:replace(requestScope[issue].alias, "-", "_")}");
                </iwebmvc:sprite>
                <iwebmvc:sprite id='${fn:replace(requestScope[issue].alias, "-", "_")}IssueActivityHide' text="iwebmvc.ui.crud.hide;${activityClass.name}" sprite="table_${sessionScope[sessionUser].theme}.png" top="-300px" style="display:none" position="after">
                    hideIssueActivityFilter("${fn:replace(requestScope[issue].alias, "-", "_")}");
                </iwebmvc:sprite>
            </div>
        </div>
    </iwebmvc:filteredgrid>
</iwebmvc:panel>
<script type="text/javascript">
    dojo.addOnLoad(function() {
        issueOnLoad('${fn:replace(requestScope[issue].alias, "-", "_")}IssueActivity');
    });
</script>